package com.lili.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 题目表
 *
 * @TableName tbl_question
 */
@Data
@ApiModel("题目的实体类")
@TableName("tbl_question")
public class Question implements Serializable {
    /**
     * 主键编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 题目描述
     */
    @TableField("question_name")
    private String questionName;

    /**
     * 题目类别：1单选题、2多选题、3判断题、4简答题
     */
    @TableField("question_type")
    private Integer questionType;

    /**
     * 题目分数
     */
    @TableField("question_score")
    private Double questionScore;

    /**
     * 答案A
     */
    @TableField("answer_a")
    private String answerA;

    /**
     *
     */
    @TableField("answer_b")
    private String answerB;

    /**
     *
     */
    @TableField("answer_c")
    private String answerC;

    /**
     *
     */
    @TableField("answer_d")
    private String answerD;

    /**
     * 难度
     */
    @TableField("difficulty")
    private Double difficulty;

    /**
     * 正确答案
     */
    @TableField("correct_answer")
    private String correctAnswer;

    /**
     * 题目解析
     */
    @TableField("question_desc")
    private String questionDesc;

    /**
     * 所属科目编号
     */
    @TableField("subject_id")
    private Integer subjectId;

    /**
     * 创建人编号
     */
    @TableField("create_user")
    private Integer createUser;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 是否删除0代表未删除，1代表删除
     */
    @TableField("deleted")
    private Integer deleted;

    private static final long serialVersionUID = 1L;
}